<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>pig书屋</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" media="all">
	<link rel="stylesheet" type="text/css" href="css/qian.css" media="all">
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body>
	<div class="container">
		<%@ include file="include/top.jsp" %>
		<div class="content" style="margin:0px 10px;">
			<div class="part3 clearfix" style="border-bottom:1px double #AEAEAE;">
				<div class="navbar" style="margin-bottom:0px;">
				  <div class="navbar-inner">
				    <!-- <a class="brand" href="#">新书上架</a> -->
				    <ul class="breadcrumb" style="margin-bottom:0px;">
					  <li><a href="/home.action">首页</a> <span class="divider">/</span></li>
  				  	  <li class="active">搜索结果<span class="divider">/</span></li>
					  <%-- <c:if test="${not empty ptype}">
					  	<li class="active">${ptype.typeName}<span class="divider">/</span></li>
					  </c:if> --%>
					  <li class="active">${sou}</li>
					</ul>
				  </div>
				</div>
				<c:choose>
					<c:when test="${empty bookList}">
						<div class="alert">
						  <button type="button" class="close" data-dismiss="alert">&times;</button>
						  <strong>没有搜索结果</strong> 
						</div>
					</c:when>
					<c:otherwise>
						<div class="left pull-left">
							<div class="row1">
								<ul class="thumbnails">
								  <c:forEach items="${bookList}" var="book">
								  	<li class="span2">
									  <a href="/bookDetail.action?id=${book.id}">
									    <div class="thumbnail">
									    	<c:choose>
									    		<c:when test="${not empty book.pic}">
											      <img src="/showPic.action?id=${book.id}" style="width:104px;height:150px;margin-left:13px;" alt="${book.bookName}">
									    		</c:when>
									    		<c:otherwise>
											      <img src="/showPic.action?id=1" style="width:104px;height:150px;margin-left:13px;" alt="${book.bookName}">
									    		</c:otherwise>
									    	</c:choose>
									      <h5 style="margin-left:15px;margin-bottom:5px;width:110px;height:40px;">${book.bookName}</h5>
									      <p style="margin-left:15px;">￥${book.price}</p>
									    </div>
									  </a>
								    </li>
								  </c:forEach>
								</ul>	
							</div>
						</div>
				</c:otherwise>
				</c:choose>
			</div>
		</div>
		
		<%@ include file="include/foot.jsp" %>
	</div>
</body>
</html>